package game.components;

import java.awt.Point;
import java.io.Serializable;
import java.util.Stack;

public class Player implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1530513991636686700L;

	private int ID = 0; // player ID = 1 or 2 represent player1 or player2
						// relatively
	private String name;
	private boolean myTurn = false;
	private int amtOfWin = 0;
	private Stack<Point> moveCollection = new Stack<Point>();

	public Player(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isMyTurn() {
		return myTurn;
	}

	public void setMyTurn(boolean myTurn) {
		this.myTurn = myTurn;
	}

	public void addMoving(Point p) {
		moveCollection.push(p);
	}

	public void removMoving(Point p) {
		moveCollection.remove(p);
	}

	public Stack<Point> getMoveCollection() {
		return moveCollection;
	}

	public int getAmtOfWin() {
		return amtOfWin;
	}

	public void setAmtOfWin(int amtOfWin) {
		this.amtOfWin = amtOfWin;
	}

	public int getID() {
		return ID;
	}

	public void setID(int iD) {
		ID = iD;
	}
}
